<h1>User Registration</h1>

<?php echo validation_errors();
	
	/*
 	 * Configure form parameters
 	 * 
 	 */
	$address_textArea = array(
			'name' => 'address',
			'id' => 'cust_address_textArea',
			'value' => set_value('address'),
			'rows' => 5,
			'cols' => 40,
			);
	
    $full_nameText = array(
            'name'=> 'f_name',
            'id'=> 'usernameTxt_box',
            'size'=> 55,
            'value'=> set_value('f_name'),
    );
    
	/*
	 * End Form Parameters Config
	 */
	
	//	Display New form 
	$attr = array('class'=>'form', 'id'=>'newUserForm');
	echo form_open('user/register', $attr);
	
	echo "<div style='border:0px solid red;'><ul class='form_list'>" . 
				"<li>" . form_label('Full Name') . "</li>" . 
				"<li>" . form_input($full_nameText) . "</li>" . 
	"</ul></div>";
	
	echo "<div style='clear:both';></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li>" . form_label('Username') . "</li>" .
			"<li>" . form_input('username', set_value('username')) . "</li>" .
	"</ul></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li class='left_indentLabel'>" . form_label('Password') . "</li>" .
			"<li>" . form_password('passwd') . "</li>" .
	"</ul></div>";

    echo "<div style='clear:both';></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li>" . form_label('Email') . "</li>" .
			"<li>" . form_input('email', set_value('email')) . "</li>" .
	"</ul></div>";
	/*echo "<div style='clear:both';></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li>" . form_label('Address') . "</li>" .
			"<li>" . form_textarea($address_textArea) . "</li>" .
	"</ul></div>";*/
	echo "<div style='clear:both';></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li>" . form_label('City') . "</li>" .
			"<li>" . form_input('city', set_value('city')) . "</li>" .
	"</ul></div>";
	echo "<div style='border:0px solid red;'><ul class='form_list'>" .
			"<li class='left_indentLabel'>" . form_label('State') . "</li>" .
			"<li>" . form_input('state', set_value('state')) . "</li>" .
	"</ul></div>";
	echo "<div style='clear:both';></div>";
	
	// Submit button
	echo "<div style='border:0px solid red;'>" . form_submit('submit', 'Register user') . "</div>";
	
	// Close the form
	echo form_close();